import {createStore} from "vuex";
import type {MutationTree} from "vuex";
import i18n from "./modules/i18n"

interface IState {
    breadcrumbs:string[]
}

const mutations:MutationTree<IState> = {

    changeBreadCrumb:function(state:IState,payload){
        state.breadcrumbs = payload.breadcrumbs;
    }
    
}

export default createStore<IState>({
    modules:{
        i18n
    },
    state(){
        return {
            breadcrumbs:[],
        }
    },
    mutations
})